import requests
def face_compare(API_Key,API_secret,face_token1,face_token2):
    """该函数为调用face++ face_compare接口"""
    url = 'https://api-cn.faceplusplus.com/facepp/v3/compare'
    payload = {
        "api_key":API_Key,
        "api_secret":API_secret,
        "face_token1":face_token1,
        "face_token2":face_token2
    }
    r = requests.post(url,params=payload)
    return r.json()